const http = uni.$u.http
const api = {
	/**
	 * 公告获取
	 */
	getNotices(params) {
	    return http.post('/recyclable/Notice/getNotices', params)
	},
	
	/**
	 * 轮播图获取
	 */
	getBanners(params) {
	    return http.post('/recyclable/Banner/getBanners', params)
	},
	
	/**
	 * 统计获取
	 */
	getStatus(params) {
		return http.get('/recyclable/index/getStatus', params)
	},
	
	
	
	/**
	 * 分类获取
	 */
	getCategories(params) {
		return http.get('/recyclable/Categories/getCategories', params)
	},
	
	
	/**
	 * 价格获取
	 */
	getCategoryPrice(params) {
		return http.get('/recyclable/Index/getCategoryPrice', params)
	},
	
	/**
	 * 地址获取
	 */
	getAddress(params) {
		return http.get('/recyclable/address/getAddress', params)
	},
	
	/**
	 * 添加地址
	 */
	addAddress(params) {
		return http.post('/recyclable/address/addAddress', params)
	},
	
	/**
	 * 地址删除
	 */
	delAddress(params) {
		return http.post('/recyclable/address/delAddress', params)
	},
	
	/**
	 * 地址详情获取
	 */
	detailAddress(params) {
		return http.post('/recyclable/address/detailAddress', params)
	},


	/**
	 * 编辑地址
	 */
	editAddress(params) {
		return http.post('/recyclable/address/editAddress', params)
	},
    
	// localhost:8088/api/recyclable/order/add
	// 新增订单
	orderAdd(params) {
		return http.post('/recyclable/order/add', params)
	},
	
	// 订单列表
	orderList(params) {
		return http.post('/recyclable/order/list', params)
	},
	
	
    
    
	
}

export default api;
